<?php
Route::group(['prefix' => 'admin/link', 'namespace' => 'App\Http\Controllers\Admin'], function () {
    Route::get('', 'LinkController@getIndex');
    Route::get('add', 'LinkController@getAdd');
    Route::get('edit/{id}', 'LinkController@getEdit');
    Route::get('tag-list', 'LinkController@getTagList');
});

Route::group(['prefix' => 'api/link', 'namespace' => 'App\Http\Controllers\Api'], function () {
    Route::post('insert', 'LinkController@postInsert');
    Route::post('update', 'LinkController@postUpdate');
    Route::post('upload-pic1', 'LinkController@postUploadPic1');
    Route::post('delete', 'LinkController@postDelete');
    Route::post('add-tag', 'LinkController@postAddTag');
    Route::post('edit-tag', 'LinkController@postEditTag');
    Route::post('del-tag', 'LinkController@postDelTag');
});
